export const produceJsonFormat = {
  name: '',
  description: '',
  madeBy: '',
  productURL: '',
  resultURL: '',
  refundDays: '',
  issueTime: '',
  issueDays: '',
  tags: '',
  className: '',
  saleType: '',
  smallPicture: '',
  bigPicture: '',
  poster: '',
  onHomepage: 1,
  onBanner: 1,
  isGroupBuy: 1,
  isPost: 1,
  canRefund: 1,
  issueImme: 1,
  numberOfMember: '',
  duration: '',
  isIssueOffline: 1,
  priceList: [
    {
      specList: [
        {
          key: '',
          value: ''
        }
      ],
      originalPrice: '',
      instantPrice: '',
      groupPrice: '',
      leaderPrice: '',
      personalList: [
        {
          distributorIDList: [],
          income: ''
        }
      ],
      incomeClassList: [
        {
          classID: '',
          income: ''
        }
      ],
      isMultiple: ''
    }
  ]
}

export const produceJsonRules = {
  name: [
    { required: true, message: '请输入课程名称', trigger: 'blur' },
    { min: 1, max: 15, message: '长度在 1 到 15 个字符', trigger: 'blur' }
  ],
  description: [
    { required: true, message: '请输入课程描述', trigger: 'blur' }
  ],
  madeBy: [
    { required: true, message: '请输入合作机构名称', trigger: 'blur' }
  ],
  productURL: [
    { required: true, message: '请输入商品宣传链接', trigger: 'blur' }
  ],
  resultURL: [
    { required: true, message: '请输入购买结果链接', trigger: 'blur' }
  ],
  tags: [
    { required: true, message: '请添加标签', trigger: 'blur' }
  ],
  smallPicture: [
    { required: true, message: '请添加图片' }
  ],
  bigPicture: [
    { required: true, message: '请添加图片' }
  ],
  poster: [
    { required: true, message: '请添加图片' }
  ],
  className: [
    { required: true, message: '请至少选择一个', trigger: 'change' }
  ],
  saleType: [
    { required: true, message: '请至少选择一个', trigger: 'change' }
  ]
}